<?php

/*
 * 定时更新数据库信息的Action
*
*/
class UpdateAction extends Action {
	/*	
	public function Example() {
		Session::switchCustomer(0);
		$Customer = D('customer');
		$HandleModel = new Model();
		$arr = $Customer->select();
		if($arr){
			foreach ($arr as $customer){
				$cid = $customer['id'];

				$sql1 = "alter table wx_". $cid ."_module_product_order ADD `supplyId` int(11) DEFAULT NULL COMMENT '供应商ID';";
				$HandleModel->query($sql1);
		
				$sql2 = "alter table wx_". $cid ."_module_product_order ADD `channelId` int(11) DEFAULT NULL COMMENT '渠道商ID';";
				$HandleModel->query($sql2);
		
				$sql3 = "alter table wx_". $cid ."_module_product_order ADD `supplyName` varchar(64) DEFAULT NULL COMMENT '供应商名称';";
				$HandleModel->query($sql3);
				
			}
		}
		echo "product";
	}
	*/
    
    
 }